import UserLayout from "@/layout/UserLayout.vue";
import type { RouteRecordRaw } from 'vue-router'


export default [
    {
        path: '/login',
        name: 'LoginParent',
        meta: { title: 'Login' },
        component: UserLayout,
        children: [
            {
              path: '',
              name: 'Login',
              component: () => import('@/views/user/Login.vue')
            },
            {
              path: '/recover',
              name: 'Recover',
              component: () => import('@/views/user/Recovers.vue')
            }
          ]
    },
    {
        path: '/401',
        name: 'Error401',
        component: () => import('@/views/exception/Error401.vue'),
        meta: { title: '登录失效' }
    },
    {
        path: '/:pathMatch(.*)*',
        name: 'Error404',
        component: () => import('@/views/exception/Error404.vue'),
        meta: { title: '页面不存在' }
    }

] as RouteRecordRaw[];
